import request from '@/utils/request'

// 查询人脸识别库列表
export function listFacerecognition(query) {
  return request({
    url: '/faceplus/facerecognition/list',
    method: 'get',
    params: query
  })
}

// 查询人脸识别库详细
export function getFacerecognition(id) {
  return request({
    url: '/faceplus/facerecognition/' + id,
    method: 'get'
  })
}

// 新增人脸识别库
export function addFacerecognition(data) {
  return request({
    url: '/faceplus/facerecognition',
    method: 'post',
    data: data
  })
}

// 修改人脸识别库
export function updateFacerecognition(data) {
  return request({
    url: '/faceplus/facerecognition',
    method: 'put',
    data: data
  })
}

// 删除人脸识别库
export function delFacerecognition(id) {
  return request({
    url: '/faceplus/facerecognition/' + id,
    method: 'delete'
  })
}
